package com.vercon.otamirror.service;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;



public class HomeSettingViewModel extends ViewModel {

    private MutableLiveData<Boolean> otaSwitchLiveData;



    public HomeSettingViewModel(){
        otaSwitchLiveData = new MutableLiveData<>();

    }

    /**
     * ota
     * @param isOn
     */
    public void setOtaSwitchData(boolean isOn){
        otaSwitchLiveData.postValue(isOn);
    }

    /**
     * ota
     * @return
     */
    public MutableLiveData<Boolean> getOtaSwitchLiveData(){
        return otaSwitchLiveData;
    }




}
